package com.glory.erp.invoice.supplier.service.impl;

import java.io.Serializable;
import java.util.List;

import com.glory.erp.invoice.supplier.service.SupplierService;
import com.glory.erp.invoice.supplier.dao.SupplierDao;
import com.glory.erp.invoice.supplier.bean.Supplier;
import com.glory.erp.auth.base.BaseQueryModel;

public class SupplierServiceImpl implements SupplierService{
	
	private SupplierDao supplierDao;
	
	public void setSupplierDao(SupplierDao supplierDao) {
		this.supplierDao = supplierDao;
	}

	public void save(Supplier supplier) {
		supplierDao.save(supplier);
	}

	public void update(Supplier supplier) {
		supplierDao.update(supplier);
	}

	public void delete(Supplier supplier) {
		supplierDao.delete(supplier);
	}

	public Supplier findById(Serializable uuid) {
		return supplierDao.findById(uuid);
	}

	public List<Supplier> findAll() {
		return supplierDao.findAll();
	}

	public List<Supplier> findAll(BaseQueryModel qm, Integer pageNum,Integer pageCount) {
		return supplierDao.findAll(qm,pageNum,pageCount);
	}

	public Integer getCount(BaseQueryModel qm) {
		return supplierDao.getCount(qm);
	}

	public List<Supplier> findAllUnion() {
		return supplierDao.findAllUnion();
	}

	public List<Supplier> findAllUnionTwo() {
		return supplierDao.findAllUnionTwo();
	}
}